package spynx.jobengine;

import spynx.desl.Statement;
import spynx.desl.runtime.IExecutionContext;

public class DeslStatementJob extends AbstractJob {

	private static final long serialVersionUID = -1018996893510636175L;

	private Statement statement;
	private IExecutionContext context;
	
	public DeslStatementJob(IExecutionContext context, Statement statement) {
		this.context = context;
		this.statement = statement; 
	}
	
	@Override
	public void executeJob(Object args) throws Exception {
		statement.execute(context);
	}

}
